package com.itheima.jdk8date;

import java.time.LocalDate;
import java.util.Date;

public class Demo04 {

    public static void main(String[] args) {

        //jdk7 +一天
        Date date = new Date();
        long time = date.getTime();
        time=time+60*60*24*1000;
        Date newDate = new Date(time);
        System.out.println(newDate);

        LocalDate now = LocalDate.now();
        LocalDate newDate2 = now.plusDays(1);
        System.out.println(now);
        System.out.println(newDate2);
    }
}
